import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver import ActionChains
import os
from selenium.webdriver.common.keys import Keys

driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
driver.maximize_window()
time.sleep(1)
kw = driver.find_element(By.ID,'kw')
kw.send_keys('天气预报')
kw.send_keys(Keys.CONTROL,'a')
time.sleep(1)
kw.send_keys(Keys.CONTROL,'x')
time.sleep(2)
driver.get('https://so.com')
time.sleep(2)
driver.find_element(By.ID,'input').send_keys(Keys.CONTROL,'c')
time.sleep(1)
driver.find_element(By.ID,'search-button').click()
time.sleep(2)



